* {
    padding: 0;
    margin: 0;
}

body {
    width: 100vw;
    min-height: 500px;
    background-color: #f6f6f8;
    display: flex;
    place-content: center;
    margin-bottom: 50px;
    overflow-x: hidden;

    form {
        margin-top: 1rem;
        width: 740px;
        // height: 600px;
        min-width: 700px;
        min-height: 600px;
        background-color: #fff;
        border-radius: 5px;
        box-shadow: 0 0 6px #f0f2ff5;

        .view-info {
            display: flex;
            padding: 20px;

            .left-info {
                flex: 8;

                h2 {
                    font-weight: 500;
                }

                >p {
                    cursor: pointer;
                    text-align: right;
                    transform: translateY(-18px);
                    color: #00c2b3;
                    padding-right: 24px;

                    &:hover {
                        color: #9adbcf;
                    }
                }
            }

            .right-control {
                flex: 1;
                display: flex;
                place-content: center;
                place-items: center;
                flex-direction: column;

                img {
                    width: 70px;
                    height: 70px;

                    &:hover {
                        transition: 250ms;
                        filter: opacity(0.5);
                    }
                }

                span {
                    color: #6adbcf;
                    cursor: pointer;
                    margin-top: 12px;
                    min-width: 30px;

                    &:hover {
                        color: #9adbcf;
                    }
                }
            }
        }

        .edit-info {
            padding: 20px;
            background-color: #f8f9fb;
            display: none;

            .form-box {
                display: grid;
                grid-template-rows: repeat(4, 1fr);
                grid-template-columns: repeat(2, 1fr);

                .form-item {
                    margin-bottom: 20px;
                    position: relative;


                    // 单选框
                    .item-content {
                        width: 320px;
                        height: 34px;
                        position: relative;
                        display: flex;
                        justify-content: space-between;

                        span {
                            height: 100%;
                            display: inline-block;
                            width: 130px;
                            position: relative;
                            text-align: center;

                            input {
                                position: relative;
                                z-index: 1000;
                                width: 130px;
                                height: 100%;
                                opacity: 0;
                            }

                            p {
                                transform: translateY(-150%);
                                cursor: pointer;
                            }

                            background-color: #ffffff;
                            border: 1px solid #e3e7ed;
                            color: #9fa3b0;

                            &:hover {
                                transition: 250ms;
                                border: 1px solid #18c3b1;

                            }
                        }

                        .active {
                            transition: 250ms;
                            background-color: #effbfa;
                            border: 1px solid #18c3b1;
                            color: #18c3b1;
                        }
                    }
                }
            }

            .input-textarea {
                display: grid;
                grid-template-columns: 1fr;
                grid-template-rows: 1fr;
            }

            .form-btns {
                text-align: right;
                margin-right: 30px;

                button {
                    font-size: 14px;
                    min-width: 90px;
                    padding: 7px 15px;
                    color: #414a60;
                    outline: none;

                    &:first-child {
                        margin-right: 20px;
                        border: 1px solid #e3e7ed;
                        background-color: #fff;

                        &:hover {
                            transition: 25ms;
                            background-color: #f7f7f7;
                        }
                    }

                    &:last-child {
                        color: #fff;
                        border: 1px solid #18c3b1;
                        background-color: #18c3b1;

                        &:hover {
                            transition: 250ms;
                            border-color: #6adbcf;
                            background-color: #6adbcf;
                        }
                    }
                }
            }
        }

        section {
            padding-bottom: 20px;
            border-bottom: 1px solid #f2f3f3;

            >p {
                text-align: right;
                padding-top: 20px;
                padding-right: 12px;
                font-size: 12px;
                cursor: pointer;

                &:hover {
                    transition: 250ms;
                    color: #00c2b3;
                }
            }

            .fobideen {
                cursor: not-allowed;
                pointer-events: none;
                background-color: #f5f6f7;
            }

            .fromactive {
                background-color: #f5f6f7;
            }

            &:first-child {
                .base-info {
                    padding: 20px 0;
                    display: grid;
                    // grid-template:repeat(2,1fr) / repeat(3,1fr);
                    grid-template-rows: repeat(2, 1fr);
                    grid-template-columns: repeat(3, 120px);
                    row-gap: 20px;

                    p {
                        // border: 1px solid;
                        text-align: center;

                        &:nth-child(-n+2) {
                            border-right: 1px solid #e0e0e0;
                        }

                        &:nth-child(3) {
                            text-align: right;
                        }

                        &:last-child {
                            font-size: 13px;
                        }
                    }
                }
            }

            &:nth-child(3) {
                .base-info {
                    display: flex;

                    p {
                        text-align: center;
                        transition: 250ms;
                        padding: 0 20px;

                        &:nth-child(-n+3) {
                            border-right: 1px solid #e0e0e0;
                        }

                        &:last-child {
                            text-align: right;
                        }

                    }
                }
            }

            &:nth-child(6) {
                .base-info {
                    .info-textarea {
                        display: flex;

                        p {
                            text-align: center;
                            transition: 250ms;
                            padding: 0 20px;
                            max-height: 20px;

                            &:nth-child(-n+3) {
                                border-right: 1px solid #e0e0e0;
                            }

                            &:last-child {
                                text-align: right;
                            }

                        }
                    }
                }
            }

            &:not(:nth-child(1)) {
                h3 {
                    font-weight: 500;
                }

                h3::before {
                    content: '|';
                    margin-right: 10px;
                    font-size: 8px;
                    background-color: #53cac3;
                    color: #53cac3;
                    border-radius: 5px;
                }


                .base-info {
                    font-size: 13px;
                    margin: 20px 0;
                    padding: 10px 20px;
                    color: #61687c;
                    cursor: pointer;
                    display: flex;

                    div {
                        min-height: 40px;

                        &:first-child {
                            flex: 4;
                        }

                        &:last-child {
                            flex: 1;
                            position: relative;

                            span {
                                position: absolute;
                                top: 10%;
                                left: 80%;
                                transform: translate(-50%, -50%);
                            }
                        }
                    }

                    span {
                        display: none;
                    }

                    &:hover {
                        transition: 600ms;
                        background: #f2f5f9;
                        border-radius: 4px;
                    }

                    &:hover span {
                        display: block;
                    }
                }
            }
        }
    }

    .input-select {
        display: grid;
        grid-template-columns: repeat(2, fr) !important;
        grid-template-rows: 1fr !important;

        select {
            font-size: 13px;
        }
    }

    .edu-input {
        display: grid;
        grid-template-columns: repeat(2, fr) !important;
        grid-template-rows: 1fr !important;
    }

    header {
        display: flex;
        justify-content: space-between;
        padding-top: 20px;
        padding-left: 20px;
        padding-right: 20px;
        font-size: 13px;

        span {
            &:first-child {
                font-size: 12px;
                color: #b8a3b7;
            }

            &:last-child {
                color: #414a60;
                font-size: 15px;
            }
        }

    }

    footer {
        text-align: center;
        padding: 20px 0;

        button {
            outline: none;
            border: 1px solid #53cac3;
            background-color: #53cac3;
            color: #fff;
            padding: 4px 24px;

            &:hover {
                transition: 250ms;
                filter: opacity(0.5);
            }
        }

        .submitbtn {
            pointer-events: none;
            cursor: not-allowed;
        }
    }
}
.error {
    color: #f56c6c;
    font-size: 12px;
    font-weight: 300;
}